package com.service.impl;

import com.dao.MenuDao;
import com.pojo.Menu;
import com.service.MenuService;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

public class MenuServiceImpl implements MenuService {
    @Resource
    private MenuDao menuDao;

    public void setMenuDao(MenuDao menuDao) {
        this.menuDao = menuDao;
    }

    public void makeMenu() {

        menuDao.makeMenu();
        throw  new RuntimeException();
    }
    public void getMenu(int mId,String mName){
        menuDao.makeMenu();
        System.out.println("编号——————————————>"+mId + "——————————————>" + mName );
    }

    @Override
    public List<Menu> selectMenu() {
        return menuDao.selectMenu();
    }

}
